//  获取access_token （微信公众号开发）
var express = require("express");
var router = express.Router();
const { getAccessToken } = require("../accesstoken");

/* GET home page. */
router.get("/", function (req, res, next) {
  getAccessToken((body) => {
    res.send(body);
  });
});

module.exports = router;
